/*
 * @Author: chengsl
 * @Date: 2023-01-09 15:14:49
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-09 15:14:51
 * @Description: 山形图 widgetHillChart
 */
export default {
  title: {
    text: '',
    show: false,
    left: 'center',
    textStyle: { color: '#fff', fontSize: 20, fontWeight: 'normal' },
    subtext: '',
    subtextStyle: { color: '#fff', fontWeight: 'normal', fontSize: 20 }
  },
  grid: { left: 30, right: 40, bottom: 30, top: 50, containLabel: true },
  tooltip: {
    trigger: 'axis',
    show: true,
    axisPointer: { type: 'shadow' },
    textStyle: { color: '', fontSize: 16 }
  },
  xAxis: [
    {
      type: 'category',
      data: [
        '建档管理数',
        '学龄前儿童数',
        '孕龄妇女数',
        '老年人人数',
        '高血压患者数',
        '糖尿病患者数',
        '家医签约数'
      ],
      boundaryGap: true,
      axisTick: { show: false, inside: false, alignWithLabel: true },
      show: true,
      name: '',
      nameTextStyle: { color: '#fff', fontSize: 14 },
      nameRotate: 20,
      inverse: false,
      axisLabel: {
        show: true,
        interval: 0,
        rotate: 20,
        textStyle: { color: '#fff', fontSize: 14 }
      },
      axisLine: { show: true, lineStyle: { color: '#fff' } },
      splitLine: { show: false, lineStyle: { color: '#fff' } }
    }
  ],
  yAxis: [
    {
      type: 'value',
      position: 'left',
      splitNumber: 0,
      show: true,
      name: '',
      nameTextStyle: { color: '#fff', fontSize: 14 },
      inverse: false,
      axisLabel: {
        show: false,
        rotate: 0,
        textStyle: { color: '#fff', fontSize: 14 }
      },
      axisTick: { show: false },
      axisLine: { show: false, lineStyle: { color: '#fff' } },
      splitArea: {
        show: true,
        areaStyle: { color: ['rgba(32,45,92,0.1)', 'rgba(32,45,92,0.4)'] }
      },
      splitLine: { show: false, lineStyle: { color: '#fff' } }
    }
  ],
  series: [
    {
      name: '',
      type: 'pictorialBar',
      barCategoryGap: '0%',
      symbol:
        'path://M12.000,-0.000 C12.000,-0.000 16.074,60.121 22.731,60.121 C26.173,60.121 -3.234,60.121 0.511,60.121 C7.072,60.121 12.000,-0.000 12.000,-0.000 Z',
      itemStyle: {},
      emphasis: { itemStyle: { opacity: 1 } },
      z: 50,
      data: ['1278', '2345', '345', '3592', '4567', '3456', '8765'],
      color: '#0060FF',
      label: {
        show: true,
        position: 'top',
        distance: 5,
        textStyle: { fontSize: 14, color: '#fff', fontWeight: 'normal' }
      }
    }
  ]
}
